package me.luger.core.dao.nutz.entity.easyui.datagrid;

import java.util.List;

/**
 * Created by a on 2017/8/8.
 */
public class DataGridRequest {
    private Integer page;
    private Integer rows;
    private List<DataGridFilter> filterRules;
    private String sort;
    private String order;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public List<DataGridFilter> getFilterRules() {
        return filterRules;
    }

    public void setFilterRules(List<DataGridFilter> filterRules) {
        this.filterRules = filterRules;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getStart(){
        return (this.page - 1)  * this.rows;
    }
}
